<?php
/**
 * Country Model
 * 
 * @author CRIA Groep 1 <project@markvink.nl>
 * @version 1.0
 * @package models
 */
class Country extends AppModel 
{
	/**
    * @var string Model name (faster in PHP 4)
    */
	var $name = 'Country';
	
	/**
    * @var string displays field in select box
    */
	var $displayField = 'name';
	
	/**
    * @var array hasMany relations
    */	
	var $hasMany = array(
        'Laundry' => array(
            'className' => 'Laundry'
        ),
	);
	
	/**
    * @var array validation rules
    */
	var $validate = array( 
		'name' => array(            
			'between' => array(               
				'rule' => array('between', 4, 25),            
				'required' => true,                
				'message' => 'Name must be between 4 and 25 characters long.'            
			),
		),	
	);
}
